<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>供应商平台</title>

</head>
<body class="tob-wrap">

	<div th:replace="common/top"></div>
	<article class="container container-b4-estimate clearfix">
		<div th:replace="common/left::side"></div>
		<section class="content">

			<h3 class="m-top-bar">
				<!--<img src="../images/temp/pic_30x30_01.jpg" alt=""/> <a href="#">HUAWEI
					Tech <icon class="icon-btn icon-btn-blue-close"></icon>
				</a>-->
			</h3>

			<div class="m-order-bar">
				<p>
					<strong>评估与评级</strong>
				</p>
			</div>

			<div class="m-order-bar m-order-bar-estimate">
				<h4>
					<span>2015年度评分：</span><strong th:text="${scoreEvl}"></strong> <em th:text="'超过'+${gradeEvl}+'%的供应商'"></em>
				</h4>
				<ul>
					<li><span>2015年度评级：</span> 
					<img th:if="${vendor.grade == 'A'}" src="../images/bg_star_5.png" height="22" alt=""/> 
					<img th:if="${vendor.grade == 'B'}" src="../images/bg_star_4.png" height="22" alt=""/> 
					<img th:if="${vendor.grade == 'C'}" src="../images/bg_star_3.png" height="22" alt=""/> 
					<img th:if="${vendor.grade == 'D'}" src="../images/bg_star_2.png" height="22" alt=""/> 
					<img th:if="${vendor.grade == 'E'}" src="../images/bg_star_1.png" height="22" alt=""/> 
					
					<strong><span class="span-big" th:text="${vendor.grade}"></span>级</strong>
					</li>
					
					
				</ul>
			</div>
			<div class="m-table-sell">
				<div class="m-table-cont">
					<table width="100%" summay="" cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th>序号</th>
								<th>订单号</th>
								<th>评估时间</th>
								<th>描述</th>
								<th>评估人</th>
								<th>评价</th>
								<th>总分</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<tr th:each="purchaseOrder,index:${purchaseOrderList}">
								<input type="hidden" th:value="${purchaseOrder.tUser.id}" name="receiveUserId" id="receiveUserId"/>
								<input type="hidden" th:value="${purchaseOrder.tUser.email}" name="receiveEmail" id="receiveEmail"/>
								 <td>
							       <span   th:if="${#strings.length(index.count) eq 1}" th:text="${#strings.prepend(index.count,'00')}"/>
                    		       <span   th:if="${#strings.length(index.count) eq 2}" th:text="${#strings.prepend(index.count,'0')}"/>
                    		       <span   th:if="${#strings.length(index.count) eq 3}" th:text="${index.count}"/>
                            	</td>
								
								
								
								<td  th:text="${purchaseOrder.purchaseOrderNo}">1234567890</td>
								<td ><label  th:if="${purchaseOrder.evaluationTime ne null}" th:text="${#dates.format(purchaseOrder.evaluationTime, 'yyyy-MM-dd')}">2015-06-03</label></td>
								<td class="w150">
									<p th:text="${purchaseOrder.purchaseOrderDesc}"></p>
								</td>
								<td th:text="${purchaseOrder.evaluatedBy}">张三</td>
								<td class="w150">
									<p th:text="${purchaseOrder.evaluationTotalDesc}"> 每行最多十二个字多了折行每行最多十二个字多了折行每行最多十二个字多了折行</p>
								</td>
								<td>
									<p>
										<span th:text="${purchaseOrder.evaluationTotalScore}">70分</span> 
										<a th:title="'总分'+${purchaseOrder.evaluationTotalScore}+
										             '=交货速度'+${purchaseOrder.evaluationScore1}+
										             '+产品质量'+${purchaseOrder.evaluationScore2}+
										             '+服务质量'+${purchaseOrder.evaluationScore3}+
										             '+'+${purchaseOrder.evaluationDesc4}+${purchaseOrder.evaluationScore4}+
										             '+'+${purchaseOrder.evaluationDesc5}+${purchaseOrder.evaluationScore5}  "   class="icon icon-info"></a>
									</p>
								</td>
								<td><a class="" href="#" onclick="javascript:submitEstimateMessage();">申诉</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</section>
	</article>
</body>
<script data-main="../js/page/b1_supplier" src="../lib/requirejs/require.js"></script>
	<script type="text/javascript" src="../lib/jquery/dist/jquery.js"></script>
	<script type="text/javascript" src="../js/page/b2_order.js"></script>
</html>